package com.forever7776.life.core.mapper.blog;

import com.forever7776.life.core.entity.blog.BlogExt;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 博客拓展表 Mapper 接口
 * </p>
 *
 * @author kz
 * @since 2018-02-10
 */
public interface BlogExtMapper extends BaseMapper<BlogExt> {

    /**
     * 根据博客ID查询拓展数据
     *
     * @param blogId
     * @return
     */
    @Select("select * from blog_ext where blog_id=#{blogId}")
    BlogExt selectOneByBlogId(@Param("blogId") Integer blogId);
}
